﻿using System;
using System.Collections.Generic;
using System.Text;
using AMS.DataAccess;
using AMS.DataAccess.Common;
using AMS.DataAccess.Sql;

namespace UT_AMS.DataAccess.BO
{
    [DBTable("UserInfo")]
    public class UserInfo
    {
        [DBPrimaryKeyColumn("AID", true)]
        public int AID { get; set; }

        [DBColumn("Name")]
        public string Name { get; set; }

        [DBColumn("Age", 0)]
        public int Age { get; set; }

        [DBColumn("BooksCount")]
        public int BooksCount { get; set; }

        [DBDateTime("Birth", DateTimeType.Date)]
        public DateTime Birthday { get; set; }

        [DBColumn("GuidField")]
        public Guid GuidField { get; set; }

        [DBColumn("GuidNullableField", "00000000-0000-0000-0000-000000000000")]
        public Guid GuidNullableField { get; set; }

        [DBEnumColumn("CommandUT", typeof(UserType))]
        public UserType CommandUT { get; set; }

        [DBEnumColumn("UserType2", typeof(UserType), UserType.Unknown)]
        public UserType UserType2 { get; set; }

        public string NoDbClumn { get; set; }
    }
}
